import mainBox from './views/components/main/main';
const routers = [{
        path: '/',
        name: 'home',
        meta: {
            title: '首页',
            display: 'false',
        },
        component: (resolve) => require(['./views/index.vue'], resolve)
    }, {
        path: '/news',
        meta: {
            title: '新闻列表',
            display: 'false',
        },
        component: (resolve) => require(['./views/zmxc/news-list.vue'], resolve)
    },
    {
        path:'/card',
        meta:{
            title:'卡片组件',
            display:'false'
        },
        component: (resolve) => require(['./views/components/app-card/app-card.vue'], resolve)
    },
    {
        path:'/msindex',
        meta:{
            title:'平台首页',
            display:'false'
        },
        component: (resolve) => require(['./views/ms-index.vue'], resolve)
    },
    {
        path:'/idc',
        meta:{
            title:'信息展示卡片',
            display:'false'
        },
        component: (resolve) => require(['./views/components/infomation-display-card/information-display-card.vue'], resolve)
    },
    {
        path: '/main', //导航组件
        name: 'main',
        redirect: '/main/newsList',
        component: mainBox,
        meta: {
            title: '正面宣传',
            icon: 'ios-thumbs-up-outline'

        },
        children: [{
                path: "/main/newsList", //新闻列表页面
                name: "mainInfo",
                meta: {
                    title: "新闻列表",
                    name: ['正面宣传', '新闻列表'],
                    path: ['/main', '/main/newsList']
                },
                component: (resolve) => require(['./views/zmxc/news-list.vue'], resolve)
            },
            {
                path: '/main/newsReview', //新闻审核
                name: "newsReview",
                meta: {
                    title: '新闻审核',
                    name: ['正面宣传', '新闻审核'],
                    path: ['/main', '/main/newsReview']
                },
                component: (resolve) => require(['./views/zmxc/news_review.vue'], resolve)
            },
            {
                path: '/main/newsReport', //新闻上报
                name: "newsReport",
                meta: {
                    title: '新闻上报',
                    name: ['正面宣传', '新闻上报'],
                    path: ['/main', '/main/newsReport']
                },
                component: (resolve) => require(['./views/zmxc/news-report.vue'], resolve)
            },
            {
                path: '/main/newsList/newsDetails', //新闻详情页面
                name: 'newsDetails',
                meta: {
                    title: '新闻详情',
                    name: ['正面宣传', '新闻列表', '新闻详情'],
                    path: ['/main', '/main/newsList', '/main/newsList/newsDetails'],
                    display: 'false'
                },
                component: (resolve) => require(['./views/zmxc/news_details.vue'], resolve)
            },
            {
                path: '/main/manuscriptList', //稿件列表
                name: "manuscriptList",
                meta: {
                    title: '稿件列表',
                    name: ['正面宣传', '稿件列表'],
                    path: ['/main', '/main/manuscriptList']
                },
                component: (resolve) => require(['./views/zmxc/manuscript-list.vue'], resolve)
            },
            {
                path: '/main/manuscriptWriting', //稿件撰写
                name: "manuscriptWriting",
                meta: {
                    title: '稿件撰写',
                    name: ['正面宣传', '稿件撰写'],
                    path: ['/main', '/main/manuscriptWriting']
                },
                component: (resolve) => require(['./views/zmxc/manuscript-writing.vue'], resolve)
            },
            {
                path: '/main/manuscriptApproval', //稿件审批
                name: "manuscriptApproval",
                meta: {
                    title: '稿件审批',
                    name: ['正面宣传', '稿件审批'],
                    path: ['/main', '/main/manuscriptApproval']
                },
                component: (resolve) => require(['./views/zmxc/manuscript-approval.vue'], resolve)
            },
            {
                path: '/main/materialLibrary', //素材库
                name: "materialLibrary",
                meta: {
                    title: '素材库',
                    name: ['正面宣传', '素材库'],
                    path: ['/main', '/main/materialLibrary']
                },
                component: (resolve) => require(['./views/zmxc/material-library.vue'], resolve)
            },
            {
                path: '/main/interviewInformation', //采访信息
                name: "interviewInformation",
                meta: {
                    title: '采访信息',
                    name: ['正面宣传', '采访信息'],
                    path: ['/main', '/main/interviewInformation']
                },
                component: (resolve) => require(['./views/zmxc/interview-information.vue'], resolve)
            },
            {
                path: '/main/interviewApplication', //采访申请
                name: "interviewApplication",
                meta: {
                    title: '采访申请',
                    name: ['正面宣传', '采访申请'],
                    path: ['/main', '/main/interviewApplication']
                },
                component: (resolve) => require(['./views/zmxc/interview-application.vue'], resolve)
            },
            {
                path: '/main/interviewReview', //采访审核
                name: "interviewReview",
                meta: {
                    title: '采访审核',
                    name: ['正面宣传', '采访审核'],
                    path: ['/main', '/main/interviewReview']
                },
                component: (resolve) => require(['./views/zmxc/interview-review.vue'], resolve)
            },
            {
                path: '/main/advBudget', //广告预算
                name: "advBudget",
                meta: {
                    title: '广告预算',
                    name: ['正面宣传', '广告预算'],
                    path: ['/main', '/main/advBudget']
                },
                component: (resolve) => require(['./views/zmxc/advertising-budget.vue'], resolve)
            },
            {
                path: '/main/advNeeds', //广告需求
                name: "advNeeds",
                meta: {
                    title: '广告需求',
                    name: ['正面宣传', '广告需求'],
                    path: ['/main', '/main/advNeeds']
                },
                component: (resolve) => require(['./views/zmxc/advertising-needs.vue'], resolve)
            },
            {
                path: '/main/advProjectManagement', //广告项目管理
                name: "advProjectManagement",
                meta: {
                    title: '广告项目管理',
                    name: ['正面宣传', '广告项目管理'],
                    path: ['/main', '/main/advProjectManagement']
                },
                component: (resolve) => require(['./views/zmxc/advertising-project-management.vue'], resolve)
            },
            {
                path: '/main/advCase', //广告案例
                name: "advCase",
                meta: {
                    title: '广告案例',
                    name: ['正面宣传', '广告案例'],
                    path: ['/main', '/main/advCase']
                },
                component: (resolve) => require(['./views/zmxc/advertising-case.vue'], resolve)
            },
            {
                path: '/main/supplierManagement', //供应商管理
                name: "supplierManagement",
                meta: {
                    title: '供应商管理',
                    name: ['正面宣传', '供应商管理'],
                    path: ['/main', '/main/supplierManagement']
                },
                component: (resolve) => require(['./views/zmxc/supplier-management.vue'], resolve)
            },
            {
                path: '/main/mediaAwards', //媒体奖项
                name: "mediaAwards",
                meta: {
                    title: '媒体奖项',
                    name: ['正面宣传', '媒体奖项'],
                    path: ['/main', '/main/mediaAwards']
                },
                component: (resolve) => require(['./views/zmxc/media-awards.vue'], resolve)
            },
            {
                path: '/main/propagationAnalysis', //传播分析页面
                name: 'propagationAnalysis',
                meta: {
                    title: '传播分析',
                    name: ['舆情管理', '传播分析'],
                    path: ['/main/propagationAnalysis', '/main/propagationAnalysis']
                },
                component: (resolve) => require(['./views/propagation_analysis.vue'], resolve)
            },
        ]
    },
    {
        path: '/sysSetting', //负面舆情
        name: 'negative',
        redirect: '',
        component: mainBox,
        meta: {
            title: '负面舆情',
            icon:'ios-thumbs-down-outline'
        },
        children: [{     //风险事件预警
                path: "/main/fengxianshijianyujing",
                name: "fengxianshijianyujing",
                meta: {
                    title: "风险事件预警",
                    name: ['负面舆情', '风险事件预警'],
                    path: ['/main', '/main/fengxianshijianyujing']
                },
                component: (resolve) => require(['./views/negative/fengxianshijianyujing/fengxianshijianyujing.vue'], resolve)
            },
            {
                path: '/main/negative/zhongdianrenyuanjiance', //重点人员监测
                name: "zhongdianrenyuanjiance",
                meta: {
                    title: '重点人员监测',
                    name: ['负面舆情', '重点人员监测'],
                    path: ['/main', '/main/zhongdianrenyuanjiance']
                },
                component: (resolve) => require(['./views/negative/zhongdianrenyuanjiance/zhongdianrenyuanjiance.vue'], resolve)
            },
            {
                path: '/main/negative/yuqingshangbao',     //舆情上报
                name: "yuqingshangbao",
                meta: {
                    title: '舆情上报',
                    name: ['负面舆情', '舆情上报'],
                    path: ['/main', '/main/yuqingshangbao']
                },
                component: (resolve) => require(['./views/negative/yuqingshangbao/yuqingshangbao.vue'], resolve)
            },
            {
                path: '/main/negative/yuqingshenhe',    //舆情审核
                name: 'yuqingshenhe', 
                meta: {
                    title: '舆情审核',
                    name: ['负面舆情', '舆情审核'],
                    path: ['/main', '/main/yuqingshenhe']
                },
                component: (resolve) => require(['./views/negative/yuqingshenhe/yuqingshenhe.vue'], resolve)
            },
            {
                path: '/main/negative/yuqingtishi',    //舆情提示
                name: 'yuqingtishi',
                meta: {
                    title: '舆情提示',
                    name: ['负面舆情', '舆情提示'],
                    path: ['/main', '/main/yuqingtishi']
                },
                component: (resolve) => require(['./views/negative/yuqingtishi/yuqingtishi.vue'], resolve)
            },
            {
                path: '/main/negative/yuqingpaicha',     //舆情排查
                name: 'yuqingpaicha',
                meta: {
                    title: '舆情排查',
                    name: ['负面舆情', '舆情排查'],
                    path: ['/main', '/main/yuqingpaicha']
                },
                component: (resolve) => require(['./views/negative/yuqingpaicha/yuqingpaicha.vue'], resolve)
            },
            {
                path: '/main/negative/anliku',       //案例库
                name: 'anliku',
                meta: {
                    title: '案例库',
                    name: ['负面舆情', '案例库'],
                    path: ['/main', '/main/anliku']
                },
                component: (resolve) => require(['./views/negative/anliku/anliku.vue'], resolve)
            },
            {
                path: '/main/negative/yuanku',       //预案库
                name: 'yuanku',
                meta: {
                    title: '预案库',
                    name: ['负面舆情', '预案库'],
                    path: ['/main', '/main/yuanku']
                },
                component: (resolve) => require(['./views/negative/yuanku/yuanku.vue'], resolve)
            },
        ]
    },
    {
        path: '/main/management',     //综合管理
        name: 'management',
       
        component: mainBox,
        meta: {
            title: '综合管理',
            icon:'ios-options-outline'
        },
        children: [
            {
                path: "/main/management/calendar",    //舆情日历
                name: "calendar",
                meta: {
                    title: "舆情日历",
                    name: ['综合管理', '舆情日历'],
                    path: ['/main', '/main/calendar']
                },
                component: (resolve) => require(['./views/management/calendar/calendar.vue'], resolve)
            },
            {
                path: '/main/management/regulation',     //规章制度
                name: "regulation",
                meta: {
                    title: '规章制度',
                    name: ['综合管理', '规章制度'],
                    path: ['/main', '/main/regulation']
                },
                component: (resolve) => require(['./views/management/regulation/regulation.vue'], resolve)
            },
            {
                path: '/main/management/regulation/addRegulation', //
                name: 'addRegulation',
                meta: {
                    title: '新建规章制度',
                    name: ['综合管理', '规章制度', '新建规章制度'],
                    path: ['/main', '/main/management/regulation', '/main/management/regulation/addRegulation'],
                    display: 'false'
                },
                component: (resolve) => require(['./views/management/regulation/addRegulation.vue'], resolve)
            },
            {
                path: '/main/management/file',    //文件综合
                name: "file",
                meta: {
                    title: '文件综合',
                    name: ['综合管理', '文件综合'],
                    path: ['/main', '/main/file']
                },
                component: (resolve) => require(['./views/management/file/file.vue'], resolve)
            },
            {
                path: '/main/management/policy',    //政策法规
                name: 'policy', 
                meta: {
                    title: '政策法规',
                    name: ['综合管理', '政策法规'],
                    path: ['/main', '/main/policy']
                },
                component: (resolve) => require(['./views/management/policy/policy.vue'], resolve)
            },
            {
                path: '/main/management/score',     //绩效管理
                name: 'score',
                meta: {
                    title: '绩效管理',
                    name: ['综合管理', '绩效管理'],
                    path: ['/main', '/main/score']
                },
                component: (resolve) => require(['./views/management/score/score.vue'], resolve)
            },
            {
                path: '/main/management/media',    //媒体库
                name: 'media',
                meta: {
                    title: '媒体库',
                    name: ['综合管理', '媒体库'],
                    path: ['/main', '/main/media']
                },
                component: (resolve) => require(['./views/management/media/media.vue'], resolve)
            },
            {
                path: '/main/management/media/addMedia', //新增媒体库
                name: 'addMedia',
                meta: {
                    title: '新建媒体库',
                    name: ['综合管理', '媒体库', '新建媒体库'],
                    path: ['/main', '/main/management/media', '/main/management/media/addMedia'],
                    display: 'false'
                },
                component: (resolve) => require(['./views/management/media/addMedia.vue'], resolve)
            },
        ]
    },
    {
        path: '/main/qbyp', //情报研判
        name: 'qbyp',
        redirect: '',
        component: mainBox,
        meta: {
            title: '情报研判',
            icon:'ios-options-outline'
        },
        children: [{
                path: "/main/qbyp/informationView", //资讯速览
                name: "informationView",
                meta: {
                    title: "资讯速览",
                    name: ['情报研判', '资讯速览'],
                    path: ['/main/qbyp', '/main/qbyp/informationView']
                },
                component: (resolve) => require(['./views/qbyp/information-view.vue'], resolve)
            },
            {
                path: '/main/qbyp/customerAnalysis', //客户分析
                name: "customerAnalysis",
                meta: {
                    title: '客户分析',
                    name: ['情报研判', '客户分析'],
                    path: ['/main/qbyp', '/main/qbyp/customerAnalysis']
                },
                component: (resolve) => require(['./views/qbyp/customer-analysis.vue'], resolve)
            },
            {
                path: '/main/qbyp/competitiveProductAnalysis', //竞品分析
                name: "competitiveProductAnalysis",
                meta: {
                    title: '竞品分析',
                    name: ['情报研判', '竞品分析'],
                    path: ['/main/qbyp', '/main/qbyp/competitiveProductAnalysis']
                },
                component: (resolve) => require(['./views/qbyp/competitive-product-analysis.vue'], resolve)
            },
            {
                path: '/main/qbyp/siteSelection',  //网点选址
                name: 'siteSelection',
                meta: {
                    title: '网点选址',
                    name: ['情报研判', '网点选址'],
                    path: ['/main/qbyp', '/main/qbyp/siteSelection']
                },
                component: (resolve) => require(['./views/qbyp/site-selection.vue'], resolve)
            },
            {
                path: '/main/qbyp/cashForecast', //ATM现金预测 
                name: 'cashForecast',
                meta: {
                    title: 'ATM现金预测',
                    name: ['情报研判', 'ATM现金预测'],
                    path: ['/main/qbyp', '/main/qbyp/cashForecast']
                },
                component: (resolve) => require(['./views/qbyp/cash-forecast.vue'], resolve)
            },
            {
                path: '/main/qbyp/fundRaisingWarning', //非法集资预警
                name: 'fundRaisingWarning',
                meta: {
                    title: '非法集资预警',
                    name: ['情报研判', '非法集资预警'],
                    path: ['/main/qbyp', '/main/qbyp/fundRaisingWarning']
                },
                component: (resolve) => require(['./views/qbyp/fund-raising-warnning.vue'], resolve)
            },
        ]
    },
    {
        path: '/main/settings',     //系统设置 
        name: 'settings',
       
        component: mainBox,
        meta: {
            title: '系统设置',
            icon:'ios-options-outline'
        },
        children: [{
                path: "/main/settings/bumenguanli",     //部门管理
                name: "bumenguanli",
                meta: {
                    title: "部门管理",
                    name: ['系统设置', '部门管理'],
                    path: ['/main', '/main/bumenguanli']
                },
                component: (resolve) => require(['./views/settings/bumenguanli/bumenguanli.vue'], resolve)
            },
            {
                path: '/main/settings/yonghuguanli',     //用户管理
                name: "yonghuguanli",
                meta: {
                    title: '用户管理',
                    name: ['系統设置', '用户管理'],
                    path: ['/main', '/main/yonghuguanli']
                },
                component: (resolve) => require(['./views/settings/yonghuguanli/yonghuguanli.vue'], resolve)
            },
            {
                path: '/main/settings/quanxianshezhi',    //权限设置
                name: "quanxianshezhi",
                meta: {
                    title: '权限设置',
                    name: ['系统设置', '权限设置'],
                    path: ['/main', '/main/quanxianshezhi']
                },
                component: (resolve) => require(['./views/settings/quanxianshezhi/quanxianshezhi.vue'], resolve)
            },
            {
                path: '/main/settings/minganshijianguanli',    //敏感时间管理
                name: 'minganshijianguanli', 
                meta: {
                    title: '敏感时间管理',
                    name: ['系统设置', '敏感时间管理'],
                    path: ['/main', '/main/minganshijianguanli']
                },
                component: (resolve) => require(['./views/settings/minganshijianguanli/minganshijianguanli.vue'], resolve)
            },
            {
                path: '/main/settings/gonggaoguanli',     //公共管理
                name: 'gonggaoguanli',
                meta: {
                    title: '公共管理',
                    name: ['系统设置', '公共管理'],
                    path: ['/main', '/main/gonggaoguanli']
                },
                component: (resolve) => require(['./views/settings/gonggaoguanli/gonggaoguanli.vue'], resolve)
            },
            {
                path: '/main/settings/rizhiguanli',    //日志管理
                name: 'rizhiguanli',
                meta: {
                    title: '日志管理',
                    name: ['系统设置', '日志管理'],
                    path: ['/main', '/main/rizhiguanli']
                },
                component: (resolve) => require(['./views/settings/rizhiguanli/rizhiguanli.vue'], resolve)
            },
        ]
    },
    

];
export default routers;